package trading.formulas.functions;

import trading.data.Controller;
import trading.data.IStockTickDataCollection;

public class BasicFunctionProvider implements IDataFunctionProvider {
	
	public static BasicFunctionProvider INSTANCE = new BasicFunctionProvider();
	
	private BasicFunctionProvider(){};

	@Override
	public float getValue(String dataType, IStockTickDataCollection dataCollection, int index) {
		return Controller.getValueOn(dataCollection, index, dataType);
	}

	@Override
	public String getName() {
		return "basice";
	}
}
